home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!marketgraph!rvg
- From: rvg@marketgraph.xs4all.nl (Ruud van Gaal)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: C compiler problem
- Message-ID: <3138mbj60.alamito@marketgraph.xs4all.nl>
- Date: Mon, 5 Feb 96 12:56:49 CET
- References: <4ek3b2$a5k@nntp.novia.net> <3005pbd60.alamito@marketgraph.xs4all.nl> <4eqe9n$jsa@odin.diku.dk> <DM5I1y.J46@unx.sas.com>
- Reply-To: rvg@marketgraph.xs4all.nl
- X-Newsreader: Alamito Mail and News Manager (V2.0.4 for Waffle) registered to MARKETGRAPH VISUAL AUTOMATION
-
- In <DM5I1y.J46@unx.sas.com> walker@chang.unx.sas.com (Doug Walker) wrote:
-
- >>>>int main()
- >>>void main(void) is better prototyped in C. C++ might use void main()
- >>
- >>Doesn't ANSI say int main()? At least void main break under some
- >>compilers.
- >
- >ANSI forbids the compiler to provide a prototype for main(), so either
- >will compile. However, ANSI states that main() should be declared one
- >of two ways:
- >
- > int main(int argc, char *argv[]);
- > int main(void);
- > (See 2.1.2.2 in the ANSI standard for C for details.)
- >
- > ***** / walker@unx.sas.com
- > *|_o_o|\\ Doug Walker< BIX, Portal: djwalker
- > *|. o.| || \ AOL: weissblau
- > | o |//
- > ======
-
- Not that it is part of the main()-discussion (which is closed with the last
- SAS-comment), but what is SAS doing at the moment; developing compiler
- systems for other platforms?
-
- --
- Ruud van Gaal
- MarketGraph Visual Automation
- E-Mail : rvg@marketgraph.xs4all.nl
- DoomShell 4.5 homepage: http://www.xs4all.nl/~jwkorver
- "...Works fascinates me. I could sit and watch it for hours..."
-
-